package model

type Book struct {
	ID uint `gorm:"primaryKey;type:int;not null"`			//主键ID
	IdentityId string `gorm:"type:varchar(30);not null"` 	//索书号
	DescriptionId uint `gorm:"type:int"`					//书籍详情对应id
	BorrowStatus bool `gorm:"type:tinyint(1);not null"`		//借阅情况，借出或者在馆
}

// BookDesc 书描述表
type BookDesc struct {
	ID uint `gorm:"primaryKey;type:int;not null"`		//主键ID
	BookName string `gorm:"type:varchar(50);not null"`	//书名
	Author string `gorm:"type:varchar(50);not null"`	//作者
	Summary string `gorm:"type:varchar(255);not null"`	//书简介
	Year int `gorm:"type:int;not null"`					//出版年
	//TagId uint `gorm:"type:int;not null"`				//书籍标签对应id
}